#include<bits/stdc++.h>
using namespace std;

int main() {
	string s;
	cin >> s;
	if(s.size() != 3) {
		cout << "wrong answer"; 
	}
	for(int i = 0; i < s.size(); i ++ ) {
		if(s[i] >='A' && s[i] <= 'Z') {
			s[i] = s[i] + 32;
		}
	}
	//cout << "s = " << s << endl;
	cout << (s == "yes" ? "accept" : "wrong answer");
	return 0;
}

